package com.squid.cloud.common.enums;

public enum SmsEnum {
	/**
	 * 短信类型
	 */
	//验证类短信
	SMS_REGIST("REGIST","注册"),
	SMS_FORGET("FORGET","找回密码"),
	SMS_UPDATE_PHONE("UPDATE_PHONE","更新手机号"),
	SMS_NEW_PHONE("NEW_PHONE","新手机号验证"),
	SMS_PAY_PWD_MODIFY("PAY_PWD_MODIFY","修改支付密码"),
	SMS_PWD_MODIFY("PWD_MODIFY","修改登录密码"),
	//提醒类
	SMS_APP_SYSTEM_UPDATE("APP_SYSTEM_UPDATE","系统升级，版本跟新提醒"),
	SMS_DISCOUNT_ACCOUNT_GIVE("DICOUNT_ACCOUNT_GIVE","赋予用户折扣通知"),
	SMS_REGIST_NOTICE("REGIST_NOTICE","注册提醒"),
	SMS_DEDUCT_MONEY_NOTICE("DEDUCT_MONEY_NOTICE","扣款通知"),
	SMS_FORGET_NOTICE("FORGET","找回密码提醒"),
	SMS_PAY_PWD_MODIFY_NOTICE("PAY_PWD_MODIFY_NOTICE","修改支付密码"),
	SMS_BALANCE_LESS_NOTICE("BALANCE_LESS_NOTICE","余额过少提醒"),
	SMS_DISCOUNT_LESS_NOTICE("DISCOUNT_LESS_NOTICE","折扣余额过少提醒"),
	SMS_INIT_PWD("INIT_PWD","初始化登录密码"),
	SMS_PAPER_INVOICE_SUCCESS("PAPER_INVOICE_SUCCESS","纸质开票成功"),
	SMS_ELECTRONIC_INVOICE_SUCCESS("ELECTRONIC_INVOICE_SUCCESS","电子开票成功"),
	SMS_PAPER_INVOICE_FAIL("PAPER_INVOICE_FAIL","纸质开票失败"),
	SMS_ELECTRONIC_INVOICE_FAIL("ELECTRONIC_INVOICE_FAIL","电子开票失败"),
	SMS_REFUEL_REFUND("REFUEL_REFUND","加油退款提醒"),
	SMS_LOST_OIL_CARD_VERIFICATION("LOST_OIL_CARD_VERIFICATION","油卡挂失短信验证码"),
	SMS_LOST_OIL_CARD_SUCCESS("LOST_OIL_CARD_SUCCESS","挂失成功短信"),
	SMS_LOST_OIL_CARD_FAILURE("LOST_OIL_CARD_FAILURE","挂失失败短信"),
	SMS_LOST_OIL_CARD("LOST_OIL_CARD","挂失短信"),
	SMS_CHANGE_OIL_CARD("CHANGE_OIL_CARD","换卡受理短信"),
	SMS_CHANGE_OIL_CARD_SUCCESS("CHANGE_OIL_CARD_SUCCESS","换卡成功短信"),
	SMS_CHANGE_OIL_CARD_FAILURE("CHANGE_OIL_CARD_FAILURE","换卡失败短信"),
	SMS_EXCHANGE_OIL_CARD_VERIFICATION("EXCHANGE_OIL_CARD_VERIFICATION","油卡换卡短信验证码"),
	SMS_HICARD_REGIST_NOTICE("SMS_HICARD_REGIST_NOTICE","嗨卡注册成功短信"),
	SMS_HICARD_ACCOUNT_NOTICE("SMS_HICARD_ACCOUNT_NOTICE","嗨卡上账成功短信"),
	SMS_EXCHANGE_OIL_CARD("EXCHANGE_OIL_CARD","换卡短信"),
	SMS_BALANCE_SURPASS_LIMIT("BALANCE_SURPASS_LIMIT","备付金余额小于通知限额短信通知"),
	SMS_OIL_MATSTER_AND_VICE_BALANCE_SURPASS_LIMIT("OIL_MATSTER_AND_VICE_BALANCE_SURPASS_LIMIT","油站主/副卡余额小于通知限额短信通知")
	
	;
	
	/**
	 * 枚举值
	 */
	private final String code;
	
	/**
	 * 枚举描述	
	 */
	private final String message;
	
	/**
	 * 构造一个<code>PasswordLevelEnum</code>枚举对象
	 *
	 * @param code
	 * @param message
	 */
	private SmsEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public static SmsEnum getSmsEnum(String code){
		SmsEnum smsEnum=null;
		for(SmsEnum temp:SmsEnum.values()){
			if(temp.code.equals(code)){
				smsEnum =temp;
				break;
			}
		}
		return smsEnum;
	}

	public String code() {
		return code;
	}

	public String message() {
		return message;
	}
	
}
